﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Noebe
{
    public interface IEntityQuerion
    {
        /// <summary>
        /// select all
        /// </summary>
        /// <param name="table"></param>
        /// <returns></returns>
        List<T> Select<T>() where T : IEntityBase;
        /// <summary>
        /// select by primary key
        /// </summary>
        /// <param name="table"></param>
        /// <param name="values"></param>
        /// <returns></returns>
        T SelectByPk<T>(params object[] values) where T : IEntityBase;
    }
}
